﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;

namespace PIAE
{
    public partial class ErrorNoAlbums : Form
    {
        String directory;
        public ErrorNoAlbums(String dir)
        {
            InitializeComponent();
            toolTip1.SetToolTip(pictFolder, dir);
            directory = dir;

            this.label1.Text = MyResourceManager.GetString("ERRNOALBUMThereIsAProblemItLooksLikeYouDidnTCreatedAnyAlbumsInPicasaYet");
            this.label2.Text = MyResourceManager.GetString("ERRNOALBUMAlbumsAreSometimeMistakenWithFolders");
            this.label3.Text = MyResourceManager.GetString("ERRNOALBUMHereIsASmallHint");
            this.label4.Text = MyResourceManager.GetString("ERRNOALBUMIfYouHaveOnlyFolders");
            this.picasaAlbumsLink.Text = MyResourceManager.GetString("ERRNOALBUMSorryCurrentVersionOfApplicationCanOnlyExportAlbumsLearnMoreAboutPicasaAlbumsHere");
            this.label6.Text = MyResourceManager.GetString("ERRNOALBUMIfYouForSureHaveAlbums");
            this.label8.Text = MyResourceManager.GetString("ERRNOALBUMItLooksLikeYouHaveFoundABugPleaseContactMeAt");
            this.folderHelp.Text = MyResourceManager.GetString("ERRNOALBUMIWillProbablyAskWhatIsTheContentOfFollowingFolderSoYouCanCheckItRightNowClickToOpenFolder");
            this.Text = MyResourceManager.GetString("ERRNOALBUMOoopsNoPicasaAlbumsWereFound");
            this.exitBtn.Text = MyResourceManager.GetString("Exit");

        }

        private void exitBtn_Click(object sender, EventArgs e)
        {
            Dispose();
        }

        private void pictureBox3_Click(object sender, EventArgs e)
        {
            ProcessStartInfo sInfo = new ProcessStartInfo("http://www.google.pl/search?q=picasa+help+folders+albums");
            Process.Start(sInfo);
        }

        private void pictureBox4_Click(object sender, EventArgs e)
        {
            ProcessStartInfo sInfo = new ProcessStartInfo(directory);
            Process.Start(sInfo);
        }
    }
}
